import Vue from 'vue'
import {fetch, put, post, del} from "./baseApi";

Vue.prototype.$fetch = fetch
Vue.prototype.$put = put
Vue.prototype.$post = post
Vue.prototype.$delete = del
export const getOrdersList = (payload) => {
  return Vue.prototype.$fetch("orders", payload)
}
export const getOrdersById = (id) => {
  return Vue.prototype.$fetch("orders/" + id)
}
export const getWuliuById = (id) => {
  return Vue.prototype.$fetch("/kuaidi/" + id)
}
